package com.listen.dao;

import com.listen.model.User;
import com.listen.model.UserCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;

public interface UserMapper {
    Long countByExample(UserCriteria example) throws DataAccessException;

    int deleteByExample(UserCriteria example) throws DataAccessException;

    int deleteByPrimaryKey(Integer id) throws DataAccessException;

    int insert(User record) throws DataAccessException;

    int insertSelective(User record) throws DataAccessException;

    List<User> selectByExample(UserCriteria example) throws DataAccessException;

    User selectByPrimaryKey(Integer id) throws DataAccessException;

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserCriteria example) throws DataAccessException;

    int updateByExample(@Param("record") User record, @Param("example") UserCriteria example) throws DataAccessException;

    int updateByPrimaryKeySelective(User record) throws DataAccessException;

    int updateByPrimaryKey(User record) throws DataAccessException;
}